

**** Replication file ****
*Policy Objective of Military Intervention and Public Attitudes: A Conjoint Experiment from US and Turkey
*Osman Sabri Kiratli
*POBE

************************************************************************************
*** Manuscript
************************************************************************************
use "warspobe-small.dta"

***Figure-2

***US (left-panel)
reg choice  i.xob  i.xsup i.xreg i.xrel i.xmod  i.xmil if country2==2, cluster( ResponseID)
coefplot, xline(0) drop(_cons)keep(*:) omitted baselevels

*** Turkey (right-panel)
reg choice  i.xob  i.xsup i.xreg i.xrel i.xmod  i.xmil if country2==1, cluster( ResponseID)
coefplot, xline(0) drop(_cons)keep(*:) omitted baselevels

margins  xreg, contrast  mcompare(bonferroni) post
marginsplot, recast(scatter) xline(0)
pwcompare i.xob  i.xsup i.xreg  i.xmod i.xrel i.xmil, mcompare(bonferroni) effects

***Figure-3
***US (left-panel)
reg choice  i.xob##i.xsup i.xreg i.xrel i.xmod i.xrel i.xmil if country2==2, cluster( ResponseID)
margins xob, at (xsup=(1)) post
estimates store A
reg choice  i.xob##i.xsup i.xreg i.xrel i.xmod i.xrel i.xmil if country2==2, cluster( ResponseID)
margins xob, at (xsup=(2)) post
estimates store B
reg choice  i.xob##i.xsup i.xreg i.xrel i.xmod i.xrel i.xmil if country2==2, cluster( ResponseID)
margins xob, at (xsup=(3)) post
estimates store C
reg choice  i.xob##i.xsup i.xreg i.xrel i.xmod i.xrel i.xmil if country2==2, cluster( ResponseID)
margins xob, at (xsup=(4)) post
estimates store D
coefplot A B C D, omitted base graphregion(color("white"))

*** Turkey (right-panel)
reg choice  i.xob##i.xsup i.xreg i.xrel i.xmod i.xrel i.xmil if country2==1, cluster( ResponseID)
margins xob, at (xsup=(1)) post
estimates store A
reg choice  i.xob##i.xsup i.xreg i.xrel i.xmod i.xrel i.xmil if country2==1, cluster( ResponseID)
margins xob, at (xsup=(2)) post
estimates store B
reg choice  i.xob##i.xsup i.xreg i.xrel i.xmod i.xrel i.xmil if country2==1, cluster( ResponseID)
margins xob, at (xsup=(3)) post
estimates store C
reg choice  i.xob##i.xsup i.xreg i.xrel i.xmod i.xrel i.xmil if country2==1, cluster( ResponseID)
margins xob, at (xsup=(4)) post
estimates store D
coefplot A B C D, omitted base graphregion(color("white"))

***Figure-4
***US (left-panel)

reg choice  i.xob##i.xreg i.xsup  i.xrel i.xmod i.xrel i.xmil if country2==2, cluster( ResponseID)
margins xob, at (xreg=(2)) post
estimates store Democracy
reg choice  i.xob##i.xreg i.xsup  i.xrel i.xmod i.xrel i.xmil if country2==2, cluster( ResponseID)
margins xob, at (xreg=(1)) post
estimates store Authoritarian 

coefplot Democracy Authoritarian , omitted base graphregion(color("white")) 

*** Turkey (right-panel)
reg choice  i.xob##i.xreg i.xsup  i.xrel i.xmod i.xrel i.xmil if country2==1, cluster( ResponseID)
margins xob, at (xreg=(2)) post
estimates store Democracy
reg choice  i.xob##i.xreg i.xsup  i.xrel i.xmod i.xrel i.xmil if country2==1, cluster( ResponseID)
margins xob, at (xreg=(1)) post
estimates store Authoritarian 

coefplot Democracy Authoritarian , omitted base graphregion(color("white")) 

***Appendix

***A-III
***US 
reg choice  i.xob  i.xsup i.xreg  i.xmod i.xrel i.xmil if country2==2, cluster( ResponseID)
margins i.xob  i.xsup i.xreg  i.xmod i.xrel i.xmil if country2==2
***Turkey
reg choice  i.xob  i.xsup i.xreg  i.xmod i.xrel i.xmil if country2==1, cluster( ResponseID)
margins i.xob  i.xsup i.xreg  i.xmod i.xrel i.xmil if country2==1

***A-IV
***US 
reg choice  i.xob##i.xsup i.xreg i.xrel i.xmod  i.xmil if country2==2, cluster( ResponseID)
est sto r1
***Turkey
reg choice  i.xob##i.xsup i.xreg i.xrel i.xmod  i.xmil if country2==1, cluster( ResponseID)
est sto r2
esttab r1 r2 , b(2) se(2) star(* 0.05 ** 0.01 *** 0.001) compress nogaps mtitles label

***A-V
***US
reg choice  i.xob##i.xreg i.xsup i.xrel i.xmod  i.xmil if country2==2, cluster( ResponseID)
est sto r1
***Turkey
reg choice  i.xob##i.xreg i.xsup i.xrel i.xmod  i.xmil if country2==1, cluster( ResponseID)
est sto r2
esttab r1 r2 , b(2) se(2) star(* 0.05 ** 0.01 *** 0.001) compress nogaps mtitles label

***A-VI
***US
reg choice  i.xob  i.xsup i.xreg  i.xmod i.xrel i.xmil if country2==2, cluster( ResponseID)
contrast i.xob  i.xsup i.xreg i.xrel i.xmod  i.xmil , mcompare(bonferroni) effects
est sto r1

*** Turkey 
reg choice  i.xob  i.xsup i.xreg  i.xmod i.xrel i.xmil if country2==1, cluster( ResponseID)
contrast i.xob  i.xsup i.xreg i.xrel i.xmod  i.xmil , mcompare(bonferroni) effects
est sto r2
esttab r1 r2 , b(2) se(2) star(* 0.05 ** 0.01 *** 0.001) compress nogaps mtitles label

***A-VII Figureleftright
***US (left=panel)
reg choice  i.xob##i.ideo2 i.xreg i.xsup  i.xrel i.xmod i.xrel i.xmil if country2==2, cluster( ResponseID)
margins xob, at (ideo2=(0)) post
estimates store Left
reg choice  i.xob##i.ideo2 i.xreg i.xsup  i.xrel i.xmod i.xrel i.xmil if country2==2, cluster( ResponseID)
margins xob, at (ideo2=(1)) post
estimates store Right
coefplot Left Right, omitted base graphregion(color("white"))

*** Turkey (right-panel)
reg choice  i.xob##i.ideo2 i.xreg i.xsup  i.xrel i.xmod i.xrel i.xmil if country2==1, cluster( ResponseID)
margins xob, at (ideo2=(0)) post
estimates store Left
reg choice  i.xob##i.ideo2 i.xreg i.xsup  i.xrel i.xmod i.xrel i.xmil if country2==1, cluster( ResponseID)
margins xob, at (ideo2=(1)) post
estimates store Right
coefplot Left Right, omitted base graphregion(color("white"))

***A-VIII Figurepartisanship

reg choice  i.xob##i.party2 i.xreg i.xsup  i.xrel i.xmod i.xrel i.xmil if country2==2, cluster( ResponseID)
margins xob, at (party2=(1)) post
estimates store Democrats
reg choice  i.xob##i.party2 i.xreg i.xsup  i.xrel i.xmod i.xrel i.xmil if country2==2, cluster( ResponseID)
margins xob, at (party2=(2)) post
estimates store Republicans
coefplot Democrats Republicans, omitted base graphregion(color("white"))

***A-IX

***A-IXa
factor  Q18_2 Q18_3 Q18_5 Q18_6 Q18_7 Q18_8, pcf
rotate
predict f1 f2

***A-IXb
***US (left=panel)
reg choice  i.xob##c.f1 i.xreg i.xsup  i.xrel i.xmod i.xrel i.xmil if country2==2, cluster( ResponseID)
margins, dydx( f1 ) over(xob) post
coefplot, xline(0)
*** Turkey (right-panel)
reg choice  i.xob##c.f1 i.xreg i.xsup  i.xrel i.xmod i.xrel i.xmil if country2==1, cluster( ResponseID)
margins, dydx( f1 ) over(xob) post
coefplot, xline(0)

***A-IXc
***US (left=panel)
reg choice  i.xob##c.f2 i.xreg i.xsup  i.xrel i.xmod i.xrel i.xmil if country2==2, cluster( ResponseID)
margins, dydx( f2 ) over(xob) post
coefplot, xline(0)
*** Turkey (right-panel)
reg choice  i.xob##c.f2 i.xreg i.xsup  i.xrel i.xmod i.xrel i.xmil if country2==1, cluster( ResponseID)
margins, dydx( f2 ) over(xob) post
coefplot, xline(0)

***A-IXd
***US (left=panel)
reg choice  i.xob i.xsup##c.f2 i.xreg   i.xrel i.xmod i.xrel i.xmil if country2==2, cluster( ResponseID)
margins, dydx( f2 ) over(xsup) post
coefplot, xline(0)
*** Turkey (right-panel)
reg choice  i.xob i.xsup##c.f2 i.xreg   i.xrel i.xmod i.xrel i.xmil if country2==1, cluster( ResponseID)
margins, dydx( f2 ) over(xsup) post
coefplot, xline(0)